package org.hongmeng.mapper;

import org.apache.ibatis.annotations.Param;
import org.hongmeng.entity.Meeting;

import java.util.List;

public interface MeetingMapper {
    int insert(Meeting meeting);
    
    Meeting selectById(Long id);
    
    Meeting selectByMeetingNo(String meetingNo);
    
    List<Meeting> selectByCreatorId(Long creatorId);
    
    int updateById(Meeting meeting);
    
    int updateStatus(@Param("id") Long id, @Param("status") Integer status);
    
    int updateParticipantCount(@Param("id") Long id, @Param("count") Integer count);
} 